<?php

namespace app\admin\controller;

use app\admin\service\DiseaseService;
use think\Request;

class Disease extends Backend
{
    /**
     * @var DiseaseService
     */
    protected $service;

    protected function initialize()
    {
        parent::initialize();
        $this->service = new DiseaseService();
    }

    public function getList(Request $request)
    {
        $data = $this->service->lists($request->param());
        $this->jsonReturn($data);
    }

    public function setShow(Request $request)
    {
        $res = $this->service->setShow($request->param('id'));
        $this->jsonReturn($res);
    }
}
